cmake_minimum_required(VERSION 2.8)
project(libcr)
include_directories(include)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(fcontext_asm src/fcontext_x86_64.S)
set_property(SOURCE
        src/fcontext_x86_64.S
        PROPERTY LANGUAGE C)
set(SOURCE_FILES
        include/libcr.h
        include/libev.h
        include/socket.h
        include/buffer.h
        src/fcontext.cpp
        src/fcontext.h
        src/libev.cpp
        src/socket.cpp
        src/scheduler.cpp
        src/example_server_cli.cpp
        ${fcontext_asm}
        src/uthread.cpp
        src/uthread.h include/connection.h)

add_executable(libcr ${SOURCE_FILES})


